package git;
import java.util.ArrayList;
import java.util.Scanner;
public interface IParking{
	void print();
	boolean addCar(int carType);
	public static IParams parse() throws Exception{
		
		IParams ip=new IParams() {
			ParkingSystem p=new ParkingSystem();
			Scanner scan=new Scanner(System.in);
			String st=scan.next();
			String[] str=p.parse(st);
			public int getBig() {
				int a=p.b;
				return a;
			}
			public int getMedium() {
				int a=p.m;
				return a;
			};
			public int getSmall() {
				int a=p.s;
				return a;
			}
			@SuppressWarnings({ "rawtypes", "unchecked" })
			public ArrayList<Integer> getPlanParking(){
				ArrayList<Integer> al=new ArrayList();
				for(int i=4;i<str.length;i++) {
					al.add(Integer.valueOf(str[i]));
				}
				return al;
			}
		};
		return ip;
	}
	String[] parse(String input) throws Exception;
}